package com.localjoycommunity.cpdj.project.system.domain;

import com.localjoycommunity.cpdj.framework.aspectj.lang.annotation.Excel;
import com.localjoycommunity.cpdj.framework.web.domain.BaseEntity;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * 试题选项对象 sys_option
 *
 * @author leepandar
 * @date 2020-11-01
 */
public class SysOption extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long optionId;

    /**
     * 问题id
     */
    @Excel(name = "问题id")
    private Long questionId;

    /**
     * 选项名称
     */
    @Excel(name = "选项名称")
    private String option;

    /**
     * 选项内容
     */
    @Excel(name = "选项内容")
    private String content;

    /**
     * 是否是正确答案 0：否  1：是"
     */
    @Excel(name = "是否是正确答案 0：否  1：是\"")
    private Integer correct;

    public void setOptionId(Long optionId) {
        this.optionId = optionId;
    }

    public Long getOptionId() {
        return optionId;
    }

    public void setQuestionId(Long questionId) {
        this.questionId = questionId;
    }

    public Long getQuestionId() {
        return questionId;
    }

    public void setOption(String option) {
        this.option = option;
    }

    public String getOption() {
        return option;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public Integer getCorrect() {
        return correct;
    }

    public void setCorrect(Integer correct) {
        this.correct = correct;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("optionId", getOptionId())
                .append("questionId", getQuestionId())
                .append("option", getOption())
                .append("content", getContent())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
